define(['text!com.csair.suggestions/index.html','com.csair.base/urlConfig' ], function(listViewTemplate, UrlConfig) {

    var IndexView = Piece.View.extend({

        id: 'flightstatus-list',

        events: {

        },
        type: 'portal',

        bindings: {},


        list_iScroll: null,

        render: function() {

            var queryAction = Piece.Session.loadObject('moduleIndex');
            if(queryAction){
                Piece.Session.deleteObject('moduleIndex');
                window.history.back();
                return false;
            }
            Piece.Session.saveObject('moduleIndex','out');
            
            Backbone.history.navigate('com.csair.suggestions/suggestions', {
                trigger: true
            });

            


            // window.location = "index.html#com.csair.dynamic/suggestions"

            return this;
        }

       
    });

    return IndexView;
});